<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <script src="cordova.js"></script>
    <script src="js/index.js"></script>
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <link rel="stylesheet" href="css/index.css">
</head>
<body>

<h2>Cordova</h2>

<div class="title">获取设备信息</div>
<div class="content">
    <button class="button" id="btn1" onclick="getDeviceInfo()">getDeviceInfo</button> 获取移动设备信息
</div>

<div class="title">调用相机拍照</div>
<div class="content">
    <button class="button" id="btn2" onclick="takePicture()">takePicture</button> 调用相机拍照
    <img id="imageShow">
</div>

<div class="title">获取网络情况</div>
<div class="content">
    <button class="button" id="btn3" onclick="getNetInfo()">getNetInfo</button> 获取网络情况
</div>

<div class="title">获取位置信息</div>
<div class="content">
    <button class="button" id="btn4" onclick="getLocationInfo()">getLocationInfo</button> 获取位置信息
</div>


<div class="title">自定义插件</div>
<div class="content">
    <button class="button" id="btn5" onclick="scanQRCode()">scanQRCode</button> 扫描二维码
</div>

</body>
</html>